﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Configuration
{
    /// <summary>
    /// 作用于类，用于标识xml文件根节点名称
    /// 默认值为Environment
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class XConfigRootAttribute : Attribute
    {
        /// <summary>
        /// xml根节点名称
        /// </summary>
        public string Name { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="name">xml根节点名称</param>
        public XConfigRootAttribute(string name)
        {
            this.Name = name;
        }
    }
}
